﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using DBManager.Admin;

namespace BO.Admin
{
    public class EmployeeBO
    {
        public static string EditStatusEmployeeBO(string ID, string status)
        {
            return EmployeeDAL.EditStatusEmployee(ID, status);
        }
        public static DataTable GetAllEmployeeBO(string status)
        {
            return EmployeeDAL.GetAllEmployee(status);
        }
        public static DataTable GetAllEmployeeAdminBO(string search, string checkStatus)
        {
            return EmployeeDAL.GetAllEmployeeAdmin(search, checkStatus);
        }
        public static DataTable GetInfomationByIDBO(string ID)
        {
            return EmployeeDAL.GetInfomationByID(ID);
        }
        public static int AddEmployeeBO(string Name, string Email, string Tel, string Address, string Birthday, string Descriptions, string InfomationOther, string Status, string Sex)
        {
            return EmployeeDAL.AddEmployee(Name, Email, Tel, Address, Birthday, Descriptions, InfomationOther, Status, Sex);
        }
        public static int EditEmployeeBO(string Name, string Email, string Tel, string Address, string Birthday, string Descriptions, string InfomationOther, string Status, string Sex, string ID)
        {
            return EmployeeDAL.EditEmployee(Name,  Email,  Tel,  Address,  Birthday,  Descriptions,  InfomationOther,  Status,  Sex , ID );
        }

    }
}
